﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DALPayment
/// </summary>
public class DALPayment :BaseDAL
{
    
	public DALPayment()
	{
    //    db = new MailDistributionSystemDBDataContext();
	}

    public void insertPayment(tblPayment payment)
    {
        db.tblPayments.InsertOnSubmit(payment);
        db.SubmitChanges();
    }

    public tblPayment getPayment(int PackageID)
    {
        return db.tblPayments.SingleOrDefault(c => c.PackageID == PackageID);
    }

    public void updatePayment()
    {
        db.SubmitChanges();
    }
}